import request from '@/utils/request'

/**
 * 获取图片列表
 * @param {*} data
 * @returns
 */
export const getImageListAPI = (data) => {
  return request({
    url: '/image',
    method: 'get',
    params: data,
  })
}


/**
 * 删除图片
 */
export const deleteImageAPI = (imageId) => {
  return request({
    url: `/image/${imageId}`,
    method: 'delete',
  })
}
